
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SKHYNIX_KEYBUTTON_H
#define __SKHYNIX_KEYBUTTON_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f37x.h"

/* Exported constants --------------------------------------------------------*/
#define KEYBUTTON_NONE	0
#define KEYBUTTON_OK	1	// 0 : GPD[10]
// // // //
#define KEYBUTTON_DOT	4	// 1 : GPD[11]
#define KEYBUTTON_7		5	// 1 : GPD[11]
#define KEYBUTTON_4		6	// 1 : GPD[11]
#define KEYBUTTON_1		7	// 1 : GPD[11]
#define KEYBUTTON_0		8	// 2 : GPD[12]
#define KEYBUTTON_8		9	// 2 : GPD[12]
#define KEYBUTTON_5		10	// 2 : GPD[12]
#define KEYBUTTON_2		11	// 2 : GPD[12]
#define KEYBUTTON_BS	12	// 3 : GPD[13]
#define KEYBUTTON_9		13	// 3 : GPD[13]
#define KEYBUTTON_6		14	// 3 : GPD[13]
#define KEYBUTTON_3		15	// 3 : GPD[13]
#define KEYBUTTON_DOWN	16	// 4 : GPD[14]
#define KEYBUTTON_UP	17	// 4 : GPD[14]
#define KEYBUTTON_LEFT	18	// 4 : GPD[14]
#define KEYBUTTON_RIGHT	19	// 4 : GPD[14]
//
#define KEYBUTTON_F1	21	// 5 : GPD[15]
#define KEYBUTTON_F2	22	// 5 : GPD[15]
#define KEYBUTTON_F3	23	// 5 : GPD[15]

/* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void KeyButton_Init(void);
u8 KeyButton_Proc(void);


#endif  /* __SKHYNIX_KEYBUTTON_H */
